#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int a = 0;
	for (int b = 1; b <= 100; b++)
	{
		if ((b % 10 == 9)||(b/10==9))
			a++;
	}
	printf("%d", a);

	return 0;
}